package com.hsgene.consumables.dto.v1.operation;

import com.hsgene.common.util.validation.FieldChecker;

import java.io.Serializable;

/**
 * 耗材申请单项详情
 *
 * @author wangbing
 * @version 1.0, 2018/9/17
 */
public class GoodsApplyOperationItemDetailDto implements Serializable {

    private static final long serialVersionUID = 6032942202689188461L;

    /**
     * 耗材申领详情记录ID
     */
    private String id;

    /**
     * 耗材id
     */
    private String goodsId;

    /**
     * 耗材名称
     */
    private String goodsName;

    /**
     * 申领数量
     */
    private int applyNumber;

    public void check() {
        FieldChecker.checkEmpty(goodsId, "耗材id");
        FieldChecker.checkEmpty(goodsName, "耗材名称");
        FieldChecker.checkMinValue(applyNumber, 1, "申领数量");
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public int getApplyNumber() {
        return applyNumber;
    }

    public void setApplyNumber(int applyNumber) {
        this.applyNumber = applyNumber;
    }
}
